package org.zjvis.datascience.common.widget.constant;

/**
 * @description TODO
 * @date 2022/1/26
 */
public class WordTemplateConstant {

    public static final String LATEST_DATA_DATE = "LATEST_DATA_DATE";

    public static final String GENERATED_DATE = "GENERATED_DATE";

    public static final String CATALOG_NAME_PREFIX = "CATALOG_";

    public static final String CATALOG_INDEX = "CATALOG_INDEX";

    public static final String CATALOG_NAME = "CATALOG_NAME";

    public static final String CATALOG_PAGE_NUM = "CATALOG_PAGE_NUM";

    public static final String IMAGE_HEADER = "IMAGE_HEADER";

    public static final String CONTENT = "CONTENT";

    public static final String IMAGE_TAGS = "IMAGE_TAGS";


    /**
     * 数字-1
     */
    public static final int NUM_MINUS_1 = -1;
    /**
     * 字节大小512
     */
    public static final int BYTE_512 = 512;

    /**
     * 字符编码utf-8
     */
    public static final String UTF_8 = "utf-8";

    /**
     * 请求头 - 文档
     */
    public final static String CONTENT_TYPE_WORD = "application/msword";
    /**
     * 请求头 - 下载
     */
    public final static String CONTENT_TYPE_DOWNLOAD = "application/x-download";
    /**
     * 请求头 - 二进制文件
     */
    public final static String CONTENT_TYPE_STEAM = "application/octet-stream;charset=UTF-8";
    /**
     * 请求头
     */
    public final static String USER_AGENT = "User-Agent";
    /**
     * 请求头
     */
    public final static String CONTENT_TYPE = "Content-Type";
    /**
     * 连接
     */
    public final static String CONNECTION = "Connection";
    /**
     * 关闭连接
     */
    public final static String CLOSE = "close";
    /**
     * 连接
     */
    public final static String ACCESS_CONTROL_ALLOW_ORIGIN = "Access-Control-Allow-Origin";
    /**
     * 连接
     */
    public final static String CONTENT_DISPOSITION = "Content-Disposition";

    /**
     * 浏览器 - ie
     */
    public final static String MSIE = "MSIE";
    /**
     * 浏览器 - Firefox
     */
    public final static String FIREFOX = "Firefox";

    public static String TEXT_SNIPPET = "<w:p>\n%s</w:p>";

    public final static String LINE_BREAK_SNIPPET = "<w:p />\n";

    public static String IMAGE_REF_ID = "<Relationship Id=\"%s\" Type=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image\" Target=\"media/%s\" />";

    public static String IMAGE_TAG = "<pkg:part pkg:name=\"/word/media/%s\" pkg:contentType=\"%s\">\n" +
            "    <pkg:binaryData>%s</pkg:binaryData>\n" +
            "</pkg:part>";

    /**
     * 默认图片的base64编码
     */
    public static final String DEFAULT_IMG = "iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAMAAACahl6sAAAC8VBMVEUAAAD////////////////////V1dXb29vf39/j4+Pm5ubo6Ojq6urr6+vt7e3u7u7f39/h4eHj4+Pk5OTm5ubn5+fo6Ojp6enq6urr6+vi4uLj4+Pk5OTl5eXm5ubm5ubn5+fo6Ojp6enp6enj4+Pj4+Pk5OTl5eXm5ubm5ubn5+fn5+fo6Ojo6Ojj4+Pk5OTk5OTl5eXm5ubm5ubm5ubn5+fn5+fo6Ojo6Ojk5OTl5eXl5eXm5ubm5ubm5ubn5+fn5+fn5+fo6Ojk5OTl5eXl5eXm5ubm5ubm5ubn5+fn5+fn5+fo6Ojl5eXl5eXm5ubm5ubm5ubm5ubn5+fn5+fn5+fl5eXl5eXl5eXm5ubm5ubm5ubm5ubn5+fn5+fn5+fl5eXl5eXm5ubm5ubm5ubm5ubm5ubn5+fn5+fl5eXl5eXm5ubm5ubm5ubm5ubm5ubn5+fn5+fn5+fl5eXl5eXm5ubm5ubm5ubm5ubm5ubn5+fn5+fn5+fl5eXl5eXm5ubm5ubm5ubm5ubm5ubm5ubn5+fl5eXl5eXm5ubm5ubm5ubm5ubm5ubm5ubn5+fn5+fl5eXl5eXm5ubm5ubm5ubm5ubm5ubm5ubm5ubn5+fn5+fl5eXm5ubm5ubm5ubm5ubm5ubm5ubm5ubn5+fn5+fl5eXm5ubm5ubm5ubm5ubm5ubm5ubm5ubn5+fn5+fl5eXm5ubm5ubm5ubm5ubm5ubm5ubm5ubn5+fl5eXm5ubm5ubm5ubm5ubm5ubm5ubm5ubm5ubn5+fl5eXm5ubm5ubm5ubm5ubm5ubm5ubm5ubm5ubm5ubn5+fm5ubm5ub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zcTyh16fQ6c4d0xVrxr3L9zVa89c6cZQyvJ/rrRi3KpJPN0vRiQONOQIZ2aR52PvRfBwDqnXiYO/X27UO2/AcpxG2T68H8inzMiEV2kZtnMrJEa8XR6XKYf6xmv5thyWJk8Pjsl4vluobsFDL4riYkwNL7dUqFg4/7pTu/2ubd3k5hjfow1E7g+dq4dndHDaVl8MpSx+OrDC+65kmn+jO+7XVxAuSqMvsyImX+KXPnLUZnP+Qa7Mz76BuB63+h1wZa5N6S0KECBEiRIgQIUKECBEiRIgQIUKECBEiRIgQIdbI/wCpJba7E6tjBAAAAABJRU5ErkJggg==";

    public static String IMAGE_SNIPPET = "<w:p>\n" +
            "                        <w:pPr>\n" +
            "                            <w:rPr>\n" +
            "                                <w:rFonts w:ascii=\"Times New Roman\" w:hAnsi=\"Times New Roman\" w:eastAsia=\"宋体\" />\n" +
            "                                <w:sz w:val=\"24\" />\n" +
            "                                <w:szCs w:val=\"28\" />\n" +
            "                            </w:rPr>\n" +
            "                        </w:pPr>\n" +
            "                    </w:p>\n" +
            "                    <w:p>\n" +
            "                        <w:pPr>\n" +
            "                           <w:jc w:val=\"center\" />" +
            "                            <w:rPr>\n" +
            "                                <w:rFonts w:hint=\"eastAsia\" w:ascii=\"Times New Roman\" w:hAnsi=\"Times New Roman\" w:eastAsia=\"宋体\" />\n" +
            "                                <w:sz w:val=\"24\" />\n" +
            "                                <w:szCs w:val=\"28\" />\n" +
            "                                <w:lang w:eastAsia=\"zh-CN\" />\n" +
            "                            </w:rPr>\n" +
            "                        </w:pPr>\n" +
            "                        <w:r>\n" +
            "                            <w:rPr>\n" +
            "                                <w:rFonts w:hint=\"eastAsia\" w:ascii=\"Times New Roman\" w:hAnsi=\"Times New Roman\" w:eastAsia=\"宋体\" />\n" +
            "                                <w:sz w:val=\"24\" />\n" +
            "                                <w:szCs w:val=\"28\" />\n" +
            "                                <w:lang w:eastAsia=\"zh-CN\" />\n" +
            "                            </w:rPr>\n" +
            "                            <w:drawing>\n" +
            "                                <wp:inline distT=\"0\" distB=\"0\" distL=\"114300\" distR=\"114300\">\n" +
            "                                    <wp:extent cx=\"${imgWidth}\" cy=\"${imgHeight}\" />\n" +
            "                                    <wp:effectExtent l=\"0\" t=\"0\" r=\"0\" b=\"0\" />\n" +
            "                                    <wp:docPr id=\"${imgIndex}\" name=\"${imgName}\" descr=\"image\" />\n" +
            "                                    <wp:cNvGraphicFramePr>\n" +
            "                                        <a:graphicFrameLocks xmlns:a=\"http://schemas.openxmlformats.org/drawingml/2006/main\" noChangeAspect=\"1\" />\n" +
            "                                    </wp:cNvGraphicFramePr>\n" +
            "                                    <a:graphic xmlns:a=\"http://schemas.openxmlformats.org/drawingml/2006/main\">\n" +
            "                                        <a:graphicData uri=\"http://schemas.openxmlformats.org/drawingml/2006/picture\">\n" +
            "                                            <pic:pic xmlns:pic=\"http://schemas.openxmlformats.org/drawingml/2006/picture\">\n" +
            "                                                <pic:nvPicPr>\n" +
            "                                                    <pic:cNvPr id=\"${imgId}\" name=\"${imgName}\" descr=\"image\" />\n" +
            "                                                    <pic:cNvPicPr>\n" +
            "                                                        <a:picLocks noChangeAspect=\"1\" />\n" +
            "                                                    </pic:cNvPicPr>\n" +
            "                                                </pic:nvPicPr>\n" +
            "                                                <pic:blipFill>\n" +
            "                                                    <a:blip r:embed=\"${imgRefId}\" />\n" +
            "                                                    <a:stretch>\n" +
            "                                                        <a:fillRect />\n" +
            "                                                    </a:stretch>\n" +
            "                                                </pic:blipFill>\n" +
            "                                                <pic:spPr>\n" +
            "                                                    <a:xfrm>\n" +
            "                                                        <a:off x=\"0\" y=\"0\" />\n" +
            "                                                        <a:ext cx=\"${imgWidth}\" cy=\"${imgHeight}\" />\n" +
            "                                                    </a:xfrm>\n" +
            "                                                    <a:prstGeom prst=\"rect\">\n" +
            "                                                        <a:avLst />\n" +
            "                                                    </a:prstGeom>\n" +
            "                                                </pic:spPr>\n" +
            "                                            </pic:pic>\n" +
            "                                        </a:graphicData>\n" +
            "                                    </a:graphic>\n" +
            "                                </wp:inline>\n" +
            "                            </w:drawing>\n" +
            "                        </w:r>\n" +
            "                    </w:p>" +
            "                       <w:p>\n" +
            "                        <w:pPr>\n" +
            "                            <w:jc w:val=\"center\" />\n" +
            "                            <w:rPr>\n" +
            "                                <w:rFonts w:hint=\"default\" w:ascii=\"Times New Roman\" w:hAnsi=\"Times New Roman\" w:eastAsia=\"宋体\" />\n" +
            "                                <w:lang w:eastAsia=\"zh-CN\" />\n" +
            "                            </w:rPr>\n" +
            "                        </w:pPr>\n" +
            "                        <w:r>\n" +
            "                            <w:rPr>\n" +
            "                                <w:rFonts w:hint=\"eastAsia\" w:ascii=\"Times New Roman\" w:hAnsi=\"Times New Roman\" w:eastAsia=\"宋体\" />\n" +
            "                                <w:lang w:eastAsia=\"zh-CN\" />\n" +
            "                            </w:rPr>\n" +
            "                            <w:t>${imgFootNote}</w:t>\n" +
            "                        </w:r>\n" +
            "                    </w:p>";


}
